package com.simple.editor.ui;

import com.simple.editor.vcs.VcsStatus;

import java.io.File;
import java.net.URI;

/**
 * Created with IntelliJ IDEA.
 * User: vsoroka
 * Date: 10.06.13
 * Time: 17:03
 * To change this template use File | Settings | File Templates.
 */
public class FileModel extends File {
    private VcsStatus status = VcsStatus.UNKNOWN;
    private boolean changed;

    public FileModel(final String pathname) {
        super(pathname);
    }

    public FileModel(final URI uri) {
        super(uri);
    }

    public FileModel(final File parent, final String child) {
        super(parent, child);
    }

    public FileModel(final String parent, final String child) {
        super(parent, child);
    }

    public String toString() {
        return getName();
    }

    public VcsStatus getStatus() {
        return status;
    }

    public void setStatus(final VcsStatus status) {
        this.status = status;
    }

    public boolean isChanged() {
        return changed;

    }

    public void setChanged(final boolean changed) {
        this.changed = changed;
    }
}